<?php
namespace app\mobile\model;

/**
 * Class Promotion
 * @package app\mobile\model     促销活动表
 */
class Promotion extends BaseModel
{
    public function getCreateTimeAttr($value)
    {
        return date('Y-m-d',$value);
    }

    public function getTitleAttr($value)
    {
        return reStrLen($value,10);
    }

}